﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="BuildCompletionEvent.cs" company="Jim Liddell">
//   Copyright © Jim Liddell. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace TeamBuildBunny
{
    #region Usings

    using System.Xml.Serialization;

    #endregion

    /// <summary>
    /// Encapsulates the information about a build completion event.
    /// </summary>
    public class BuildCompletionEvent : EventBase
    {
        #region Properties

        /// <summary>
        /// Gets or sets the time the build was completed.
        /// </summary>
        public string BuildCompleteTime { get; set; }

        /// <summary>
        /// Gets or sets the name of the machine on which the build was executed.
        /// </summary>
        public string BuildMachine { get; set; }

        /// <summary>
        /// Gets or sets the build start time.
        /// </summary>
        public string BuildStartTime { get; set; }

        /// <summary>
        /// Gets or sets the completion status.
        /// </summary>
        public string CompletionStatus { get; set; }

        /// <summary>
        /// Gets or sets the configuration.
        /// </summary>
        public string Configuration { get; set; }

        /// <summary>
        /// Gets or sets the id.
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// Gets or sets the name of the person who requested the build.
        /// </summary>
        public string RequestedBy { get; set; }

        /// <summary>
        /// Gets or sets the Team Foundation Server URL.
        /// </summary>
        [XmlElement(DataType = "anyURI")]
        public string TeamFoundationServerUrl { get; set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// Gets or sets the URL at which further details can be accessed.
        /// </summary>
        [XmlElement(DataType = "anyURI")]
        public string Url { get; set; }

        #endregion
    }
}